import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 */
/*输入一个整数，计算它的位数。如果输入的整数不大于0则输出这个数
输入描述：一个整数
输出描述：整数的位数*/
public class Test1 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int count = 0;
        if(num <= 0){
            System.out.println(num);
        }else {
            while (num != 0 ){
                count ++;
                num = num / 10;
            }
            System.out.println(count);
        }

    }
}
